title = "文章列表"
url = "/blog/category/:slug/:page?"
is_hidden = 0
robot_index = "index"
robot_follow = "follow"

[blogPosts]
pageNumber = "{{ :page }}"
categoryFilter = "{{ :slug }}"
postsPerPage = 10
noPostsMessage = "No posts found"
sortOrder = "published_at desc"
categoryPage = "blog"
postPage = "blogdetail"
==
<?php
function onEnd()
{
    // Optional - set the page title to the category name
    if ($this->category)
        $this->page->title = $this->category->name;
}
?>
==
<!DOCTYPE html>
<html lang="en">

{% partial "meta" %}

<body id="home" class="homepage">

<header id="header">
    {% partial "nav-blog" %}
    
    
<style>  
    body {
        background-color: #f5f6f7;
    }
    
    .col-center-block {  
        float: none;  
        display: block;  
        margin-left: auto;  
        margin-right: auto;  
    }  
    
    .posts-list {
        background-color: #fff;
    }
    .posts-list ul{
        padding-left: 0px;
    }
    .posts-list ul li {
        border-bottom: 1px solid #f4f4f4;
        list-style-type:none;
        padding: 22px 24px;
    }
    .posts-list ul li a:visited{
        color: #999;
    }
    .posts-list ul li a:link{
        color: #4f4f4f;
    }
    .posts-list ul li:hover{
        background-color: #fafafa;
    }
</style>
</header><!--/header-->


<div class="col-xs-8 col-center-block">
    <div class="col-xs-8">
        {% if not category %}
            <h2>Category not found</h2>
        {% else %}
            <h2>{{ category.name }}</h2>
            <div class="posts-list">
                {% component 'blogPosts' %}
            </div>
            
        {% endif %}    
    </div>
    <div class="col-xs-4">
    </div>
    
</div>